import Rrequest from '@/util/RrequestT'
// import RrequestT from '@/util/RrequestT'

// 评论列表
export async function commentlist(data) {
	return Rrequest({
		url: '/boot/comment/list',
		method: 'post',
		data: data
	})
}

// 新增评论
export async function addcomment(data) {
	return Rrequest({
		url: '/boot/comment/create',
		method: 'post',
		data: data
	})
}

// 删除评论
export async function delcomment(data) {
	return Rrequest({
		url: '/boot/comment/delete',
		method: 'post',
		data: data
	})
}

// 点赞
export async function zan(data) {
	return Rrequest({
		url: '/boot/commentHitLike/create',
		method: 'post',
		data: data
	})
}

// 取消赞
export async function nzan(data) {
	return Rrequest({
		url: '/boot/commentHitLike/delete',
		method: 'post',
		data: data
	})
}



// 圈子列表
export async function filelist(data) {
	return Rrequest({
		url: '/boot/circle/listByMe',
		method: 'post',
		data: data
	})
}

// 点赞
export async function filezan(data) {
	return Rrequest({
		url: '/boot/circleHitLike/create',
		method: 'post',
		data: data
	})
}

// 取消赞
export async function filenzan(data) {
	return Rrequest({
		url: '/boot/circleHitLike/delete',
		method: 'post',
		data: data
	})
}

// 新增反馈
export async function addfeedback(data) {
	return Rrequest({
		url: '/opinion/giveOpinion',
		method: 'post',
		data: data
	})
}

// 查询反馈
export async function feedbacklist(data) {
	return Rrequest({
		url: '/opinion/getOpinion',
		method: 'post',
		data: data
	})
}

// 新增反馈
export async function delfeedback(id) {
	return Rrequest({
		url: '/opinion/deletedOpinion/' + id,
		method: 'DELETE',
	})
}


// 新增反馈
export async function bootcircleselectnext(data) {
	return Rrequest({
		// url: '/boot/circle/select/next',
		 url: '/boot/circle/select/next',
		method: 'post',
		data
	})
}

//评论回复
export async function commentreplycreate(data) {
	return Rrequest({
		url: '/boot/comment-reply/create',
		method: 'post',
		data:data
	})
}

//查询回复列表 
export async function commentreplylist(data) {
	return Rrequest({
		url: '/boot/comment-reply/list',
		method: 'post',
		data:data
	})
}